

// 公众号授权登录
// const wechatLogin = (params = {}) => uni.$u.get('Wechatoauth/accesstoken', params);

const wechatLogin = (params = {}) => uni.$u.post('/passport/auth', params);

// 公众号获取签名
const getSign = (params = {}) => uni.$u.get('/index/wxconfig', params);

// 获取用户信息
const getUserInfo = (params = {}) => uni.$u.get('/index/profile', params);

// 一言
const getYiyan = (params = {}) => uni.$u.get('/Index/Yiyan', params);

export default {
	wechatLogin,
	getSign,
	getUserInfo,
	getYiyan
}
